//
//  XLTestVC.swift
//  XLWeiBo
//
//  Created by 李晓龙 on 16/9/20.
//  Copyright © 2016年 lixiaolong. All rights reserved.
//

import UIKit

class XLTestVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        addNavRightButton()
    }
    
    private func addNavRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    //  点击事件
    func pushAction() -> Void {
        let testVc = XLTestVC()
        navigationController?.pushViewController(testVc, animated: true)
        
        
    }
}
